﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.HtmlFunc.Providers;

namespace Kooboo.CMS.SiteConverter.Parser.NVelocity
{
    public class DetailParser : ParserBase, IParser<IDetail>
    {
        #region IParser<IDetail> Members

        public void Parse(IDetail obj)
        {
            var fieldFormat = @"$ViewHelper.EditField($ViewBag.{0}, ""{1}"")"; //var fieldFormat = @"$ViewBag.{0}.{1}";
            //var linkFormat = @"$Url.FrontUrl().PageUrl(""{0}"", new {{ UserKey = item.UserKey }})";
            Razor.DetailParser.FillResult(this.Context, obj, this.EngineName, fieldFormat/*, linkFormat*/);
        }

        #endregion
    }
}
